<?php
foreach ( $this->listComment as $key=>$row )
{
    $isFptId    = (is_numeric($row['userid']) && $row['userid']>=1000000000)?true:false;
    $isDelete   = ($this->isAdminView || ($this->viewer->userid>0 && $this->viewer->userid==$row['userid']))?true:false;
?>
    <li id="commentItem-<?php echo $row['commentid'];?>">
    <?php if ( $isFptId ) {?>
        <a class="widget" href="<?php echo BANBE_URL;?>/<?php echo $row['userid'];?>/profile" rel="FPTA_<?php echo $row['userid'];?>?width=50&height=50" target="_blank"></a>
    <?php } else {?>
        <a href="javascript:;" title="<?php echo $this->escape($row['fullname']);?>"><img src="<?php echo IMAGE_URL_CLUB;?>/avatar/avatar_50x50.jpg" align="absmiddle" title="<?php echo $this->escape($row['fullname']);?>" width="50" height="50" /></a>
    <?php }//end if?>
        <div>
            <p>
            <?php if ( $isFptId ) {?>
                <a class="widget" href="<?php echo BANBE_URL;?>/<?php echo $row['userid'];?>/profile" rel="FPTD_<?php echo $row['userid'];?>" target="_blank"></a> - <?php echo $this->DateTimeDiff($row['creation_time']);?>
            <?php } else {?>
                <a href="javascript:;"><?php echo $this->escape($row['fullname']);?></a> - <?php echo $this->DateTimeDiff($row['creation_time']);?>
            <?php }//end if?>
            <?php if ( $isDelete ) {?>
                &nbsp;-&nbsp;<a href="javascript:;" style="font-weight: normal;" onclick="DetailArticle.deleteComment(<?php echo $row['commentid'];?>); return false;">Xoá</a>
            <?php }//end if?>
            </p>
            <p><?php echo nl2br($this->escape($row['content']));?></p>
        </div>
    </li>
<?php
}//end foreach
?>